<?php

namespace Modules\Auth\Entities;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Laravel\Passport\HasApiTokens;
use Modules\Common\Entities\Authenticatable;
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
    use HasFactory;

    
    use HasApiTokens;
    use HasRoles;
    use HasFactory;
    protected $fillable = [];
    

   
    public function findForPassport($username) {
        return $this->where('name', $username)->first();
    }
    public function guardName(): string {
        return 'user';
    }
}
